package com.csii.branch.service.impl;

import com.csii.branch.mapper.entity.CdBranchSupervisorInfo;
import com.csii.branch.mapper.CdBranchSupervisorInfoMapper;
import com.csii.branch.service.ICdBranchSupervisorInfoService;
import com.csii.core.system.vo.LoginUser;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 网点装修信息
 * @Author: power-stdio
 * @Date:   2020-12-22
 * @Version: V1.0
 */
@Service
public class CdBranchSupervisorInfoServiceImpl extends ServiceImpl<CdBranchSupervisorInfoMapper, CdBranchSupervisorInfo> implements ICdBranchSupervisorInfoService {
	
	@Autowired
	private CdBranchSupervisorInfoMapper cdBranchSupervisorInfoMapper;
	
	@Override
	public List<CdBranchSupervisorInfo> selectByMainId(String mainId) {
		LoginUser principal = (LoginUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
		return cdBranchSupervisorInfoMapper.selectByMainId(mainId);
	}
}
